home *** CD-ROM | disk | FTP | other *** search
- // progress.h : header file
- //
-
- /*
- * Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- */
- /////////////////////////////////////////////////////////////////////////////
- // CProgress dialog
-
- #ifndef _PROGRESS_H
-
- class CProgress : public CDialog
- {
- // Construction
- public:
- CProgress(CWnd* pParent = NULL);
-
- void SetFilename(const CString& filename);
- const BOOL IsStopPressed(void);
- void SetPercent(int percent);
-
- // Dialog Data
- //{{AFX_DATA(CProgress)
- enum { IDD = IDD_PROGRESS };
- CString m_filename;
- CString m_percent;
- //}}AFX_DATA
-
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CProgress)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
-
- // Implementation
- protected:
-
- // Generated message map functions
- //{{AFX_MSG(CProgress)
- afx_msg void OnStop();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-
- private:
- BOOL stopPressed;
- int percent;
- };
-
- #define _PROGRESS_H
- #endif _PROGRESS_H
-